<!DOCTYPE html>

<link href="../../web/images/skin.css" rel="stylesheet" type="text/css" />
<link href="../../web/css/admin_style.css" rel="stylesheet" type="text/css" />
<link href="../../web/css/page.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"></style>
<script src="../../web/js/admin.js" type="text/javascript"></script>
<style type="text/css">
body {  

font-family: 'trebuchet MS', 'Lucida sans', Arial;  
font-size: 14px;  
color: #444;  
}  
  
table {  
font-size: 15px;
*border-collapse: collapse; /* IE7 and lower */  
border-spacing: 0;  
width: 100%;  
}  
  
.bordered {  
border: solid #ccc 1px;  
-moz-border-radius: 6px;  
-webkit-border-radius: 6px;  
border-radius: 6px;  
-webkit-box-shadow: 0 1px 1px #ccc;  
-moz-box-shadow: 0 1px 1px #ccc;  
box-shadow: 0 1px 1px #ccc;  
}  
  
.bordered tr:hover {  
background: #fbf8e9;  
-o-transition: all 0.1s ease-in-out;  
-webkit-transition: all 0.1s ease-in-out;  
-moz-transition: all 0.1s ease-in-out;  
-ms-transition: all 0.1s ease-in-out;  
transition: all 0.1s ease-in-out;  
}  
  
.bordered td, .bordered th {  
border-left: 1px solid #ccc;  
border-top: 1px solid #ccc;  
padding: 5px;  
text-align: center;  
}  
  
.bordered th {  
background-color: #dce9f9;  
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));  
background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);  
background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);  
background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);  
background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);  
background-image: linear-gradient(top, #ebf3fc, #dce9f9);  
-webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;  
-moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;  
box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;  
border-top: none;  
text-shadow: 0 1px 0 rgba(255,255,255,.5);  
}  
  
.bordered td:first-child, .bordered th:first-child {  
border-left: none;  
}  
  
.bordered th:first-child {  
-moz-border-radius: 6px 0 0 0;  
-webkit-border-radius: 6px 0 0 0;  
border-radius: 6px 0 0 0;  
}  
  
.bordered th:last-child {  
-moz-border-radius: 0 6px 0 0;  
-webkit-border-radius: 0 6px 0 0;  
border-radius: 0 6px 0 0;  
}  
  
.bordered th:only-child{  
-moz-border-radius: 6px 6px 0 0;  
-webkit-border-radius: 6px 6px 0 0;  
border-radius: 6px 6px 0 0;  
}  
  
.bordered tr:last-child td:first-child {  
-moz-border-radius: 0 0 0 6px;  
-webkit-border-radius: 0 0 0 6px;  
border-radius: 0 0 0 6px;  
}  
  
.bordered tr:last-child td:last-child {  
-moz-border-radius: 0 0 6px 0;  
-webkit-border-radius: 0 0 6px 0;  
border-radius: 0 0 6px 0;  
}  


</style>

<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="../../web/images/mail_leftbg.gif"><img src="../../web/images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../../web/images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">生态子系统</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../../web/images/mail_rightbg.gif"><img src="../../web/images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="../../web/images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" valign="top">&nbsp;</td>
        <td>&nbsp;</td>
        <td valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td class='button_add center'><a href="../../index.php?PerformanceController/addItemPage/0/ecology"><img src="../../web/images/add.png" width="25px" height="25px"></a></td>     
      </tr>
      
      <?php
      //获取保存在session中的过滤条件
      $select_area = $_SESSION['filter_condition']['select_area'];
      $select_time = $_SESSION['filter_condition']['select_time'];
      $select_indicator = $_SESSION['filter_condition']['select_indicator'];
      ?>
      
      <form action="../../index.php?PerformanceController/showEcologyList" id="filter" method="post">
      <tr>
        <td width="7%">&nbsp;</td>
        <td width="85%" valign="top">
        <div class="performance_table">
        <table class="bordered" id="economy_list" width="100%" height="144" border="1" cellpadding="0" cellspacing="0" class="item_table">
          <thead>
            <th width="20%" background="../../web/images/news-title-bg.gif" class="left_bt2">
              <select id="select_area" name="select_area" onchange="document.getElementById('filter').submit()">
                <option value="all" <?php if($select_area == 'all') echo 'selected'; ?> >区域</option>
            	<option value="杨浦区" <?php if($select_area == '杨浦区') echo 'selected'; ?> >杨浦区</option>
            	<option value="徐汇区" <?php if($select_area == '徐汇区') echo 'selected'; ?> >徐汇区</option>
            	<option value="长宁区" <?php if($select_area == '长宁区') echo 'selected'; ?> >长宁区</option>
            	<option value="虹口区" <?php if($select_area == '虹口区') echo 'selected'; ?> >虹口区</option>
            	<option value="普陀区" <?php if($select_area == '普陀区') echo 'selected'; ?> >普陀区</option>
            	<option value="闵行区" <?php if($select_area == '闵行区') echo 'selected'; ?> >闵行区</option>
            	<option value="嘉定区" <?php if($select_area == '嘉定区') echo 'selected'; ?> >嘉定区</option>
            	<option value="松江区" <?php if($select_area == '松江区') echo 'selected'; ?> >松江区</option>
            	<option value="奉贤区" <?php if($select_area == '奉贤区') echo 'selected'; ?> >奉贤区</option>
            	<option value="宝山区" <?php if($select_area == '宝山区') echo 'selected'; ?> >宝山区</option>
            	<option value="南汇区" <?php if($select_area == '南汇区') echo 'selected'; ?> >南汇区</option>
            	<option value="崇明区" <?php if($select_area == '崇明区') echo 'selected'; ?> >崇明区</option>
            	<option value="浦东新区" <?php if($select_area == '浦东新区') echo 'selected'; ?> >浦东新区</option>
              </select>
            </th>
            <th width="20%" background="../../web/images/news-title-bg.gif" class="left_bt2">
              <select id="select_time" name="select_time" onchange="document.getElementById('filter').submit()">
                <option value="all" <?php if($select_time == 'all') echo 'selected'; ?> >时间</option>
            	<option value="2013" <?php if($select_time == '2013') echo 'selected'; ?> >2013</option>
            	<option value="2012" <?php if($select_time == '2012') echo 'selected'; ?> >2012</option>
            	<option value="2011" <?php if($select_time == '2011') echo 'selected'; ?> >2011</option>
            	<option value="2010" <?php if($select_time == '2010') echo 'selected'; ?> >2010</option>
            	<option value="2009" <?php if($select_time == '2009') echo 'selected'; ?> >2009</option>
            	<option value="2008" <?php if($select_time == '2008') echo 'selected'; ?> >2008</option>
            	<option value="2007" <?php if($select_time == '2007') echo 'selected'; ?> >2007</option>
            	<option value="2006" <?php if($select_time == '2006') echo 'selected'; ?> >2006</option>
            	<option value="2005" <?php if($select_time == '2005') echo 'selected'; ?> >2005</option>
            	<option value="2004" <?php if($select_time == '2004') echo 'selected'; ?> >2004</option>
            	<option value="2003" <?php if($select_time == '2003') echo 'selected'; ?> >2003</option>
            	<option value="2002" <?php if($select_time == '2002') echo 'selected'; ?> >2002</option>
            	<option value="2001" <?php if($select_time == '2001') echo 'selected'; ?> >2001</option>
            	<option value="2000" <?php if($select_time == '2000') echo 'selected'; ?> >2000</option>
              </select>
            </th>
            <th width="20%" background="../../web/images/news-title-bg.gif" class="left_bt2">
              <select id="select_indicator" name="select_indicator" onchange="document.getElementById('filter').submit()">
                <option value="all" <?php if($select_indicator == 'all') echo 'selected'; ?> >指标</option>
            	<option value="非建成用地比重变化率" <?php if($select_indicator == '非建成用地比重变化率') echo 'selected'; ?> >非建成用地比重变化率</option>
            	<option value="水环境综合污染指数" <?php if($select_indicator == 'all') echo '水环境综合污染指数'; ?> >水环境综合污染指数</option>
            	<option value="万元GDP综合能耗变化率" <?php if($select_indicator == 'all') echo '万元GDP综合能耗变化率'; ?> >万元GDP综合能耗变化率</option>
            	<option value="地均GDP" <?php if($select_indicator == '地均GDP') echo 'selected'; ?> >地均GDP</option>
              </select>
            </th>
            <th width="20%" background="../../web/images/news-title-bg.gif" class="left_bt2">指标值</th>
            <th width="20%" background="../../web/images/news-title-bg.gif" class="left_bt2">操作</th>
          </thead>
          <?php 
          define('__ROOT__', dirname(dirname(__FILE__)));
          require_once(__ROOT__.'\PageView.php');
          
          //session_start();
          $ecology_list = $_SESSION['ecology_list'];
          $count = $_SESSION['page_para']['count'];
          $page_size = $_SESSION['page_para']['page_size'];
          $pageNo = $_SESSION['page_para']['pageNo'];
          $pageData = $_SESSION['page_para']['pageData'];
          $page_ecologyList = new PageView($count,$page_size,$pageNo,$pageData,'pageLink');
          	
          	if(!empty($pageData))
          	{
          		foreach ($pageData as $ecology_item)
          		{
          			?>
          			<tr>
          			<td width='20%' class='item_line' align='center' onclick="location.href='../../index.php?PerformanceController/editPage/<?php echo ($ecology_item['id']) ?>/ecology'"><?php echo ($ecology_item['area']) ?></td>
          			<td width='20%' class='item_line' align='center' onclick="location.href='../../index.php?PerformanceController/editPage/<?php echo ($ecology_item['id']) ?>/ecology'"><?php echo ($ecology_item['time']) ?></td>
          			<td width='20%' class='item_line' align='center' onclick="location.href='../../index.php?PerformanceController/editPage/<?php echo ($ecology_item['id']) ?>/ecology'"><?php echo ($ecology_item['indicator']) ?></td>
          			<td width='20%' class='item_line' align='center' onclick="location.href='../../index.php?PerformanceController/editPage/<?php echo ($ecology_item['id']) ?>/ecology'"><?php echo ($ecology_item['value']) ?></td>
          			<td width='20%' class='item_line' align='center' onclick="newDeletePerformanceItem(<?php echo ($ecology_item['id']) ?>,this)">  删除    </td>
          			</tr>
          			<?php 
          		}
          	}
          ?>
        </table>
        </div>
        </td>
      </tr>
      
      <tr>
	    <td width="2%"><input id="pageNo" name="pageNo" type="hidden"></td>
	    <td><?php echo $page_ecologyList->echoPageAsDiv(); ?></td>
	    <td>&nbsp;</td>
        <td>&nbsp;</td>
	  </tr>
	  </form>

      <tr>
        <td colspan="2">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>



      <tr>
        <td width="2%">&nbsp;</td>
        <td width="51%" class="left_txt"><img src="../../web/images/icon-mail2.gif" width="16" height="11">咨询邮箱：842232836@qq.com<br>
              <img src="../../web/images/icon-phone.gif" width="17" height="14"> 联系电话：15001767316</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
    <td background="../../web/images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="../../web/images/mail_leftbg.gif"><img src="../../web/images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="../../web/images/buttom_bgs.gif"><img src="../../web/images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="../../web/mages/mail_rightbg.gif"><img src="../../web/images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>